package gui;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JLabel;
import java.awt.GridLayout;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.UIManager;
import javax.swing.JPasswordField;

public class VModPerfil extends JDialog {
	private JPasswordField pfPassword;
	private JTextField ftNombre;
	private JTextField ftApellidos;
	private JPasswordField passwordField;
	private JPasswordField passwordField_1;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch (Throwable e) {
			e.printStackTrace();
		}
		try {
			VRegistro dialog = new VRegistro();
			dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			dialog.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the dialog.
	 */
	public VModPerfil() {
		setResizable(false);
		setBounds(100, 100, 450, 300);
		getContentPane().setLayout(null);
		{
			JPanel buttonPane = new JPanel();
			buttonPane.setBounds(145, 217, 169, 33);
			buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
			getContentPane().add(buttonPane);
			{
				JButton okButton = new JButton("Actualizar");
				okButton.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent arg0) {
					}
				});
				okButton.setActionCommand("OK");
				buttonPane.add(okButton);
				getRootPane().setDefaultButton(okButton);
			}
			{
				JButton cancelButton = new JButton("Cancelar");
				cancelButton.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent arg0) {
						dispose();
					}
				});
				cancelButton.setActionCommand("Cancel");
				buttonPane.add(cancelButton);
			}
		}
		{
			JLabel lblRegistro = new JLabel("MODIFICAR PERFIL");
			lblRegistro.setFont(new Font("Tahoma", Font.PLAIN, 18));
			lblRegistro.setBounds(151, 11, 163, 22);
			getContentPane().add(lblRegistro);
		}
		
		JLabel lblNewLabel_1 = new JLabel("Cambiar  contrase\u00F1a");
		lblNewLabel_1.setFont(new Font("Tahoma", Font.BOLD, 14));
		lblNewLabel_1.setBounds(254, 62, 153, 14);
		getContentPane().add(lblNewLabel_1);
		
		pfPassword = new JPasswordField();
		pfPassword.setBounds(321, 85, 86, 20);
		getContentPane().add(pfPassword);
		pfPassword.setColumns(10);
		{
			JLabel lblNombre = new JLabel("Nombre");
			lblNombre.setBounds(40, 92, 37, 14);
			getContentPane().add(lblNombre);
		}
		{
			JLabel lblApellidos = new JLabel("Apellidos");
			lblApellidos.setBounds(35, 117, 42, 14);
			getContentPane().add(lblApellidos);
		}
		{
			ftNombre = new JTextField();
			ftNombre.setBounds(102, 89, 86, 20);
			getContentPane().add(ftNombre);
			ftNombre.setColumns(10);
		}
		{
			ftApellidos = new JTextField();
			ftApellidos.setBounds(102, 114, 86, 20);
			getContentPane().add(ftApellidos);
			ftApellidos.setColumns(10);
		}
		
		passwordField = new JPasswordField();
		passwordField.setBounds(321, 114, 86, 20);
		getContentPane().add(passwordField);
		
		JLabel lblCambiarDatos = new JLabel("Cambiar datos");
		lblCambiarDatos.setFont(new Font("Tahoma", Font.BOLD, 14));
		lblCambiarDatos.setBounds(40, 62, 112, 14);
		getContentPane().add(lblCambiarDatos);
		
		JLabel lblAnterior = new JLabel("Anterior");
		lblAnterior.setBounds(265, 88, 46, 14);
		getContentPane().add(lblAnterior);
		
		JLabel lblNueva = new JLabel("Nueva");
		lblNueva.setBounds(265, 119, 46, 14);
		getContentPane().add(lblNueva);
		
		passwordField_1 = new JPasswordField();
		passwordField_1.setBounds(321, 144, 86, 20);
		getContentPane().add(passwordField_1);
		
		JLabel lblRepetir = new JLabel("Repetir");
		lblRepetir.setBounds(265, 150, 46, 14);
		getContentPane().add(lblRepetir);
	}
}
